/**
 * 收入控制器
 * fanqunxing
 */

const incomeService = require('../service/incomeService.js');

/**
 * 获取收入信息
 */
const queryIncomes = async (requset) => {
  return incomeService.queryIncomes(requset);
};

/**
 * 根据主键获取收入
 */
const queryIncomeById = async (requset) => {
  return incomeService.queryIncomeById(requset);
};

/**
 * 根据主键产出收入
 */
const deleteIncomeById = async (requset) => {
  return incomeService.deleteIncomeById(requset);
};

/**
 * 新增收入
 * @param {}} requset 
 */
const addIncome = async (requset) => {
  return incomeService.addIncome(requset);
}

module.exports = {
  queryIncomes,
  queryIncomeById,
  deleteIncomeById,
  addIncome
};